import Vue from "vue";
import VueRouter from "vue-router";
import BookManagement from "@/views/BookManagement.vue";
import EditBook from "@/views/EditBook.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "BookManagement",
    component: BookManagement
  },
  {
    path: "/editBook",
    name: "editBook",
    component: EditBook
  }
];

const router = new VueRouter({
  mode: "history",
  routes
});

export default router;
